import {defineStore} from 'pinia'
import {ref} from 'vue'
export const useCounter = defineStore('counter',()=>{

const count = ref(1)
function add(){
    count.value++
}
function subtrac(){
    count.value--
}


return {
    count,add,subtrac
}



})